package com.bolang.onlycode.demo.designPatterns.decorator;


/**
 * 抽象装饰者：持有对具体构建角色的引用定义并与抽象构建角色一致的接口
 */
public abstract class DecoratorMilkTea implements ImikeTea {
    private ImikeTea imikeTea;
    public DecoratorMilkTea(ImikeTea imikeTea){
        this.imikeTea=imikeTea;
    }
    public void setImikeTea(ImikeTea imikeTea){
        this.imikeTea = imikeTea;
    }
    @Override
    public void makeMilkTea(){
        imikeTea.makeMilkTea();
    }

}
